import Vue from 'vue'
import Router from 'vue-router'
import Index from '../views/index'
import Check from '../views/check'
import UserManage from '../views/user/user-manage'
import AddUser from '../views/user/add-user'
import UsersList from '../views/user/users-list'
import AddPictures from '../views/add-pictures'
import SortIndex from '../views/sort/index'
import RankManage from '../views/rank/rank-manage'
import Setting from '../views/setting/setting'


import Chart from '../views/chart'

Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/check',
      name: 'Check',
      component: Check
    },
    {
      path: '/chart',
      name: 'Chart',
      component: Chart
    },
    {
      path: '/userslist',
      name: 'UsersList',
      component: UsersList,
    },
    {
      path:'/usermanage/:id',
      component:UserManage
    }, 
    {
      path: '/adduser',
      name: 'AddUser',
      component: AddUser
    },
    {
      path: '/addPictures',
      name: 'AddPictures',
      component: AddPictures
    },
    // 分类管理SortIndex
    {
      path: '/sort',
      name: 'SortIndex',
      component: SortIndex
    },
    //等级管理RankManage
    {
      path: '/rank',
      name: 'RankManage',
      component: RankManage
    },
    // 综合设置Setting
    {
      path: '/setting',
      name: 'Setting',
      component: Setting
    },
  ]
})
